package com.aeoj.clientmanagement.utils.common;

/**
 * author: ZSM
 * time: 2025-04-23 22:16
 */
public class DateUtil {
    /**
     * 将秒数转为时间格式
     * @param time
     * @return
     */
    public static String timeToDateStr(Integer time) {
        int h = time / 3600;
        int m = (time % 3600) / 60;
        int s = time % 60;
        return String.format("%02d:%02d:%02d", h, m, s);
    }

    public static void main(String[] args) {
        System.out.println(timeToDateStr(3550));
    }
}
